package com.qdu.program.serviceImpl;

import com.qdu.program.entity.Userinfo;
import com.qdu.program.mapper.UserinfoMapper;
import com.qdu.program.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserinfoServiceImpl implements UserinfoService {

    @Autowired
    UserinfoMapper userinfoMapper;

    @Override
    public int deleteByPrimaryKey(String userNo) {
        return userinfoMapper.deleteByPrimaryKey(userNo);
    }

    @Override
    public int insert(Userinfo record) {
        return userinfoMapper.insert(record);
    }

    @Override
    public int insertSelective(Userinfo record) {
        return userinfoMapper.insertSelective(record);
    }

    @Override
    public Userinfo selectByPrimaryKey(String userNo) {
        return userinfoMapper.selectByPrimaryKey(userNo);
    }

    @Override
    public int updateByPrimaryKeySelective(Userinfo record) {
        return userinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Userinfo record) {
        return userinfoMapper.updateByPrimaryKey(record);
    }
}
